{include file="Include/H_ui_head" /}
<title>关于我们修改</title>
</head>
<body>
<article class="page-container">
    <script type="text/javascript" src="ADMIN_JS/nicEdit.js?v=122"></script>
    <script type="text/javascript">
        bkLib.onDomLoaded(function() { nicEditors.allTextAreas(); new nicEditor({iconsPath : 'nicEditorIcons.gif'}).panelInstance('content');});
    </script>
    <form action="javascript:;" method="POST" class="form form-horizontal" id="submit">
        <input type="hidden" class="input-text"  value="{$rs.id}" placeholder="" id="hid" name="hid">
        <div class="row cl">
            <label class="form-label col-sm-3"><span class="c-red">*</span>类型名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"  value="{$rs.advisory_name}" placeholder="" id="advisory_name" name="advisory_name">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input type="hidden" name="hid" value="{$rs.id}">
                <button type="button" class="btn btn-success radius"
                        id="admin-role-save" name="admin-role-save" onclick="return reject()" >
                    <i class="icon-ok"></i>确定</button>
            </div>
        </div>
    </form>
</article>
{include file="include/H_ui_foot" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    $(function(){
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form-member-add").validate({
            rules:{
                content:{
                    required:true,
                    minlength:6,
                },
            },
            onkeyup:false,
            focusCleanup:true,
            success:"valid",
            /*submitHandler:function(form){
             $(form).ajaxSubmit(ajax_option);
             var index = parent.layer.getFrameIndex(window.name);
             parent.$('.btn-refresh').click();
             parent.layer.close(index);
             }*/
        });


    });
</script>
<script type="text/javascript">
    function reject()
    {

        var id = $("[name='hid']").val();
        var url = "{:url('Platform/advisory_type_eidt')}";
        var reject = $("[name='advisory_name']").val();
        var loading =layer.msg('正在提交数据，请稍后...',{time:5000});
        $.post(url,{advisory_name:reject,id:id},function(data){
            layer.close(loading);
            if(data.code=='1'){
                layer.msg(data.msg,{time:2000});
                setTimeout(function(){
                    layer_close(this.index);
                    parent.location.reload();
                },1000);
            }else{
                layer.msg(data.msg,{time:2000});
            }
        });
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
